<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>1、umbraco简介和安装 | haijd</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  <meta name="keywords" content="Umbraco入门" />
  
  
  
  
  <meta name="description" content="Umbraco入门教程">
<meta name="keywords" content="Umbraco入门">
<meta property="og:type" content="article">
<meta property="og:title" content="1、Umbraco简介和安装">
<meta property="og:url" content="http://www.hais2.com/2016/01/01/Umbraco-Getting-Started-1/index.html">
<meta property="og:site_name" content="haijd">
<meta property="og:description" content="Umbraco入门教程">
<meta property="og:locale" content="default">
<meta property="og:image" content="http://www.hais2.com/image/umbraco/setting1.png">
<meta property="og:image" content="http://www.hais2.com/image/umbraco/setting2.png">
<meta property="og:image" content="http://www.hais2.com/image/umbraco/setting3.png">
<meta property="og:image" content="http://www.hais2.com/image/umbraco/backoffice1.png">
<meta property="og:updated_time" content="2017-08-02T15:22:33.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="1、Umbraco简介和安装">
<meta name="twitter:description" content="Umbraco入门教程">
<meta name="twitter:image" content="http://www.hais2.com/image/umbraco/setting1.png">
  
    <link rel="alternate" href="/atom.xml" title="haijd" type="application/atom+xml">
  
  <link rel="icon" href="/css/images/favicon.ico">
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
  <link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
  <style type="text/css">
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/9749f0/00000000000000000001008f/27/l?subset_id=2&fvd=n5) format("woff2");font-weight:500;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/90cf9f/000000000000000000010091/27/l?subset_id=2&fvd=n7) format("woff2");font-weight:500;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/8a5494/000000000000000000013365/27/l?subset_id=2&fvd=n4) format("woff2");font-weight:lighter;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/d337d8/000000000000000000010095/27/l?subset_id=2&fvd=i4) format("woff2");font-weight:400;font-style:italic;}</style>
    
  <link rel="stylesheet" id="athemes-headings-fonts-css" href="//fonts.googleapis.com/css?family=Yanone+Kaffeesatz%3A200%2C300%2C400%2C700&amp;ver=4.6.1" type="text/css" media="all">
  <link rel="stylesheet" href="/css/style.css">

  <script src="/js/jquery-3.1.1.min.js"></script>

  <!-- Bootstrap core CSS -->
  <link rel="stylesheet" href="/css/bootstrap.css" >
  <link rel="stylesheet" href="/css/hiero.css" >
  <link rel="stylesheet" href="/css/glyphs.css" >
  
    <link rel="stylesheet" href="/css/vdonate.css" >
  

</head>

<script>
var themeMenus = {};

  themeMenus["/"] = "Home"; 

  themeMenus["/archives"] = "Archives"; 

  themeMenus["/categories"] = "Categories"; 

  themeMenus["/tags"] = "Tags"; 

  themeMenus["/about"] = "About"; 

</script>


  <body data-spy="scroll" data-target="#toc" data-offset="50">


  <header id="allheader" class="site-header" role="banner">
  <div class="clearfix container">
      <div class="site-branding">

          <h1 class="site-title">
            
              <a href="/" title="haijd" rel="home"> haijd </a>
            
          </h1>

          
            <div class="site-description">Stay Hungry,Stay Foolish</div>
          
            
          <nav id="main-navigation" class="main-navigation" role="navigation">
            <a class="nav-open">Menu</a>
            <a class="nav-close">Close</a>
            <div class="clearfix sf-menu">

              <ul id="main-nav" class="nmenu sf-js-enabled">
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/">Home</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/archives">Archives</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/categories">Categories</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/tags">Tags</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/about">About</a> </li>
                    
              </ul>
            </div>
          </nav>


      </div>
  </div>
</header>




  <div id="container">
    <div id="wrap">
            
      <div id="content" class="outer">
        
          <section id="main" style="float:none;"><article id="post-Umbraco-Getting-Started-1" style="width: 66%; float:left;" class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" class="article-title" itemprop="name">
      1、Umbraco简介和安装
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2016/01/01/Umbraco-Getting-Started-1/" class="article-date">
	  <time datetime="2016-01-01T13:23:04.000Z" itemprop="datePublished">January 1, 2016</time>
	</a>

      
	<span id="busuanzi_container_page_pv">
	  本文总阅读量<span id="busuanzi_value_page_pv"></span>次
	</span>

    </div>
    <div class="article-entry" itemprop="articleBody">
      
        <p>　　Umbraco是国外一个开源的Cms(内容管理)系统，适合做新闻发布、官网等内容需要经常更改变动的网站，也可以作为论坛软件使用，比如asp.net论坛就是基于umbraco制作的。而且Umbraco是使用“所见即所得”的形式，对网站的控制更加方便简单。可谓分分钟做出一个功能齐全的网站的节奏。<br><a id="more"></a><br>　　Umbraco在中国的使用范围并不广，能够找到的中文资料零零散散的，而且很多都是以前的，要知道Umbraco从7.0版本以后就开始使用MVC编写了，之前的webforms已经是过去式了。在刚开始学习使用的时候走了很多弯路，由于没有搞懂Cms系统的开发模式，浪费了很多时间，另一个是英语水平限制，阅读英文文档有很多不理解(自我批评一下，程序员应该好！好！学！英！语！)。想到可能以后应该少有机会再用Umbraco了，所以把学习到的记录下来，以后用到了还能回来看看，而且工作中有用到的朋友也可以参考一下，如果能帮到别人，这是我最大的愿望。</p>
<p>　　</p>
<hr>
<h3 id="1、安装"><a href="#1、安装" class="headerlink" title="1、安装"></a>1、安装</h3><h4 id="两种安装方法："><a href="#两种安装方法：" class="headerlink" title="两种安装方法："></a>两种安装方法：</h4><p>　　1、Umbraco的安装比较简单，可以直接去<a href="http://our.umbraco.org" target="_blank" rel="noopener">our.umbraco.org</a>网站进行下载完整的代码压缩文件并且解压到任意合适位置，其次还需要下载微软的一个web开发工具<a href="http://www.microsoft.com/web/webmatrix/" target="_blank" rel="noopener"><strong>WebMatrix</strong></a>,安装之后可以使用这个工具打开并且编辑Umbraco了。　<br>　　2、打开VS建立一个新的空web程序，然后打开<strong>程序包管理控制台</strong>，在命令行界面输入<code>Install-Package UmbracoCms</code>这个命令安装Umbraco；之后会把Umbraco以NuGet包的形式安装在当前的空web程序当中，推荐这种安装方法，因为如果有升级之类的，使用NuGet比直接下载方便管理一些。<br>　　<br>　　接下来运行Umbraco程序，会进入一个安装的页面，在这里需要进行后台账号密码、数据库类型、是否需要实例开始包安装等操作。</p>
<p>　　下图是首次进入Umbraco的设置界面，需要设置用户名(Name)、登陆umbraco时使用的邮箱(Email)、登陆密码(Password)。下面两个按钮分别是直接安装和进行其他的设置，这里我们点击<strong>Customize</strong>。<br>　　<img src="/image/umbraco/setting1.png" alt=""><br>　　点击Customize进入选择数据库类型的界面，如下图所示，有多种选择，Umbraco支持内嵌的CE数据库，MySql、SqlServer以及微软自家的Azure云。选择好数据库之后，填写数据库名称、数据库登陆账号密码等信息后，Umbraco会自动创建连接字符串；这里我们示例使用CE数据库。<br>　　<img src="/image/umbraco/setting2.png" alt=""><br>　　点击continue进入下一步操作，这里会让你选择一个官方的示例开始包(starterwebsite)，里面包含了一个简单的Umbraco网站模板，是为了让你更快上手Umbraco的使用。在这里我们点击<strong>No thanks, I do not want to install a starter website</strong>就不使用官方的模板了，因为我们接下来需要自己创建一个网站模板。<br>　　<img src="/image/umbraco/setting3.png" alt=""><br>　　接下来，我们等待安装完成，进入Umbraco的后台管理界面。如下图：<br>　　<img src="/image/umbraco/backoffice1.png" alt=""><br>　　至此，我们就已经成功的安装了Umbraco，接下来将介绍Umbraco后台管理的一些详细功能。
　　</p>

      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Umbraco/">Umbraco</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Umbraco入门/">Umbraco入门</a></li></ul>

      
        <div id="donation_div"></div>

<script src="/js/vdonate.js"></script>
<script>
var a = new Donate({
  title: '如果觉得我的文章对您有用，请随意打赏。您的支持将鼓励我继续创作!', // 可选参数，打赏标题
  btnText: 'Donate', // 可选参数，打赏按钮文字
  el: document.getElementById('donation_div'),
  wechatImage: '/css/images/wechatPay.png',
  alipayImage: '/css/images/alipay.jpg'
});
</script>
      

      
        
	<section id="comments" class="comment">
	  <div id="disqus_thread">
	  <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
	  </div>
	</section>

	<script type="text/javascript">
	var disqus_shortname = 'haijdblog';
	(function(){
	  var dsq = document.createElement('script');
	  dsq.type = 'text/javascript';
	  dsq.async = true;
	  dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
	  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
	}());
	(function(){
	  var dsq = document.createElement('script');
	  dsq.type = 'text/javascript';
	  dsq.async = true;
	  dsq.src = '//' + disqus_shortname + '.disqus.com/count.js';
	  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
	}());
	</script>


      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2016/01/02/Umbraco-Getting-Started-2/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          2、Umbraco后台管理功能介绍
        
      </div>
    </a>
  
  
    <a href="/2015/10/14/Git-points-summary/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">git知识点总结</div>
    </a>
  
</nav>

  
</article>

<!-- Table of Contents -->

  <aside id="sidebar">
    <div id="toc" class="toc-article">
    <strong class="toc-title">Contents</strong>
    
      <ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#1、安装"><span class="nav-number">1.</span> <span class="nav-text">1、安装</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#两种安装方法："><span class="nav-number">1.1.</span> <span class="nav-text">两种安装方法：</span></a></li></ol></li></ol>
    
    </div>
  </aside>
</section>
        
      </div>
      <footer id="footer" class="site-footer">
  

  <div class="clearfix container">
      <div class="site-info">
	      &copy; 2018 haijd All Rights Reserved.
          
            <span id="busuanzi_container_site_uv">
              本站访客数<span id="busuanzi_value_site_uv"></span>人次  
              本站总访问量<span id="busuanzi_value_site_pv"></span>次
            </span>
          
      </div>
      <div class="site-credit">
        Theme by <a href="https://github.com/iTimeTraveler/hexo-theme-hiero" target="_blank">hiero</a>
      </div>
  </div>
</footer>


<!-- min height -->

<script>
    var contentdiv = document.getElementById("content");

    contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("allheader").offsetHeight - document.getElementById("footer").offsetHeight + "px";
</script>
    </div>
    <!-- <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
    <a href="/categories" class="mobile-nav-link">Categories</a>
  
    <a href="/tags" class="mobile-nav-link">Tags</a>
  
    <a href="/about" class="mobile-nav-link">About</a>
  
</nav> -->
    

<!-- mathjax config similar to math.stackexchange -->

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
    });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Queue(function() {
        var all = MathJax.Hub.getAllJax(), i;
        for(i=0; i < all.length; i += 1) {
            all[i].SourceElement().parentNode.className += ' has-jax';
        }
    });
</script>

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/scripts.js"></script>
<script src="/js/bootstrap.js"></script>
<script src="/js/main.js"></script>








	<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
	</script>






  </div>

  <a id="rocket" href="#top" class=""></a>
  <script type="text/javascript" src="/js/totop.js" async=""></script>
</body>
</html>
